package com.wefans.wefansapp.common.tool.data;

import java.util.Hashtable;

/**
 * 메인(투표하기)에서 화면에 보여질 서버 연동 정보 저장 데이터클래스
 * 
 * @author kimhyeongbae
 */
public class ResGetUser
{
    private String resultcode = null;
    private String name = null;
    private String nickname = null;
    private String mystarname = null;
    private String starcnt = null;
    private String ticketcnt = "0";
    private String attendcnt = null;
    private String id = null;
    private String mobile = null;
    private String profile_img = null;//image 경로
    private String country = null;
    private String recommend = null;
    private String join_type = null;
    private Hashtable<String, String> data = null;
    
    //additional property
    private byte[] imageBuffer = null;
    
    public boolean isSuccsess()
    {
        return ("1".equals(resultcode)) ? true : false;
    }
    public String getResultcode()
    {
        return resultcode;
    }
    public void setResultcode(String resultcode)
    {
        this.resultcode = resultcode;
    }

    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getMystarname()
    {
        return mystarname;
    }
    public void setMystarname(String mystarname)
    {
        this.mystarname = mystarname;
    }

    public String getStarcnt()
    {
        return (starcnt == null) ? "0" : starcnt;
    }
    public void setStarcnt(String starcnt)
    {
        this.starcnt = starcnt;
    }

    public String getTicketcnt()
    {
        return (ticketcnt == null) ? "0" : ticketcnt;
    }
    public void setTicketcnt(String ticketcnt)
    {
        this.ticketcnt = ticketcnt;
    }

    public String getAttendcnt()
    {
        return (attendcnt == null) ? "0" : attendcnt;
    }
    public void setAttendcnt(String attendcnt)
    {
        this.attendcnt = attendcnt;
    }

    public String getId()
    {
        return id;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getProfile_img()
    {
        return profile_img;
    }
    public void setProfile_img(String profile_img)
    {
        this.profile_img = profile_img;
    }

    public String getCountry()
    {
        return country;
    }
    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getRecommend()
    {
        return recommend;
    }
    public void setRecommend(String recommend)
    {
        this.recommend = recommend;
    }

    public String getJoin_type()
    {
        return join_type;
    }
    public void setJoin_type(String join_type)
    {
        this.join_type = join_type;
    }

    public Hashtable<String, String> getData()
    {
        return data;
    }
    public void setData(Hashtable<String, String> data)
    {
        this.data = data;
    }
    
    //additional property
    public byte[] getProfileImage()
    {
        return imageBuffer;
    }
    public void setProfileImage(byte[] buffer)
    {
        imageBuffer = buffer;
    }
}
